#!/usr/bin/env python
# -*- coding: UTF-8-*-
#
# Copyright [Gtlions Lai].
# Create Date:
# Update Date:

__authors__ = '"Gtlions Lai" <gtlions.l@qq.com>'

import sys

from PyQt4 import QtCore

#import xlrd
import datetime
import chardet

print u'a'+datetime.datetime.now().strftime('%Y-%m-%d %H:%M:%S')
sys.exit()
a = "c:\mydir\mysubdir"
b = QtCore.QString(a)
c = str(b)
print type(a), type(b), type(c)
sys.exit()
s= u"你好"
if isinstance(s, str):
    print chardet.detect(s), '--', s
sutf8 = s.encode('utf-8')
print chardet.detect(sutf8), '--', sutf8

sgbk= s.encode('gbk18030')
print chardet.detect(sgbk), '--', sgbk
#s1 = s.decode('utf-8')
#print s1
#print chardet.detect(s1)


sys.exit()
